package com.dengyuanke.entity;

import com.baomidou.mybatisplus.annotations.TableName;
import com.dengyuanke.common.SuperEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * <p>
 * 
 * </p>
 *
 * @author dengyuanke
 * @since 2017-11-09
 */
@ApiModel("管理员实体")
@TableName("sys_admin")
public class Admin extends SuperEntity<Admin> {

    private static final long serialVersionUID = 1L;

    /**
     * 用户名
     */
	@ApiModelProperty("用户名")
	private String username;
    /**
     * 密码
     */
	@ApiModelProperty("密码")
	private String password;
    /**
     * 类型 1：admin
     */
	@ApiModelProperty("类型")
	private int type;

	public String getUsername() {
		return username;
	}

	public void setUsername(String username) {
		this.username = username;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public int getType() {
		return type;
	}

	public void setType(int type) {
		this.type = type;
	}

	@Override
	public String toString() {
		return "Admin{" +
				"username='" + username + '\'' +
				", password='" + password + '\'' +
				", type=" + type +
				'}';
	}
}
